package com.hx.setting.action.request;

import com.hx.setting.action.request.BaseActionRequest;
import com.hx.setting.entity.Entity;
import org.json.JSONObject;

/**
 * Generate Date : 2014-03-16
 * Generate Version : v3.0
 * Generate Name : Honey v3.1 Test
 * Generate User : THINK
 * JDK Version : 1.5
 */
public class GroupsRequest extends BaseActionRequest implements Entity
{

	/** id */
	private Long	id;

	/** 组名称 */
	private String	groupName;

	/** 组描述 */
	private String	description;

	/** 
	 * 设定id
	 * @param id
	 */
	public void setId(Long id)
	{
		this.id = id;
	}

	/** 
	 * 获取id
	 * @return id
	 */
	public Long getId()
	{
		return this.id;
	}

	/** 
	 * 设定组名称
	 * @param groupName
	 */
	public void setGroupName(String groupName)
	{
		this.groupName = groupName;
	}

	/** 
	 * 获取组名称
	 * @return 组名称
	 */
	public String getGroupName()
	{
		return this.groupName;
	}

	/** 
	 * 设定组描述
	 * @param description
	 */
	public void setDescription(String description)
	{
		this.description = description;
	}

	/** 
	 * 获取组描述
	 * @return 组描述
	 */
	public String getDescription()
	{
		return this.description;
	}

	public Entity cloneEntity()
	{
		com.hx.setting.entity.GroupsEntityWithBLOBs answer = new com.hx.setting.entity.GroupsEntityWithBLOBs();
		Object obj = null;
		obj = this.getId();
		if ( obj != null )
		{
			answer.setId( this.getId() );
		}
		obj = this.getGroupName();
		if ( obj != null )
		{
			answer.setGroupName( this.getGroupName() );
		}
		obj = this.getDescription();
		if ( obj != null )
		{
			answer.setDescription( this.getDescription() );
		}
		return answer;
	}

	public JSONObject toJsonObject()
	{
		//禁止调用
		throw new RuntimeException( "禁止调用" );
	}

	public String toXml()
	{
		//禁止调用
		throw new RuntimeException( "禁止调用" );
	}
}
/* Honey v3.1 Test - version:4 - OriginalChecksum:Bf506d52827b052ace65dec9b9a26511a (do not edit this line) */
